home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
csounds
/
telephon.c
< prev
next >
Wrap
Text File
|
1988-08-17
|
396b
|
27 lines
#define FALSE 0
#define TRUE 1
void telephone()
{
int done = FALSE;
int i;
do {
for (i = 1; i <= 20; i++) {
sound(523);
delay(40);
sound(659);
delay(40);
}
nosound();
for (i = 1; i <= 800; i++) {
if (kbhit()) {
done = TRUE;
break;
}
delay(1);
}
} while (!(done));
nosound();
}